#include <iostream>
using namespace std;
struct S
{
    int id;
    int score1;
    int score2;

    double calc_score()
    {
        return score1 * 0.7 + score2 * 0.3;
    }
    double calc_total()
    {
        return score1 + score2;
    }
}; 
void judge(struct S s)
{
    if (s.calc_score() >= 80.0 && s.calc_total() > 140)
        cout << "Excellent" << endl;
    else
        cout << "Not excellent" << endl;
}
int main()
{
    int n = 0;
    struct S s = { 0 };
    cin >> n;
    while (n--)
    {
        cin >> s.id >> s.score1 >> s.score2;
        judge(s);
    }
    return 0;
}